<?php /* Smarty version Smarty-3.1.14, created on 2014-03-31 17:46:59
         compiled from "F:\PDC\ProjectEnv\wauf2014\20140117v4\Sites\Admincp\Tpl\EasyUI\catalog_list.html" */ ?>
<?php /*%%SmartyHeaderCode:200455333f308c65753-80393284%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '77d7adb165b05cde130eb46d17aaeb3655ba62dd' => 
    array (
      0 => 'F:\\PDC\\ProjectEnv\\wauf2014\\20140117v4\\Sites\\Admincp\\Tpl\\EasyUI\\catalog_list.html',
      1 => 1396258138,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '200455333f308c65753-80393284',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5333f308cea468_48639848',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5333f308cea468_48639848')) {function content_5333f308cea468_48639848($_smarty_tpl) {?><div id="p" class="easyui-panel" title="摘要" style="width:700px;padding:10px;">
    <table><tr><td>请使用鼠标右键管理分类...</td></tr></table>
</div>
<ul id="tt" class="easyui-tree" data-options="
            url: '?m=Api/Catalog',
            method: 'get',
            animate: true,
            onContextMenu: function(e,node){
                e.preventDefault();
                $(this).tree('select',node.target);
                $('#mm').menu('show',{
                    left: e.pageX,
                    top: e.pageY
                });
            }
        "></ul>
    <div id="mm" class="easyui-menu" style="width:120px;">
        <div onclick="append()" data-options="iconCls:'icon-add'">新增</div>
        <div onclick="edit()" data-options="iconCls:'icon-edit'">编辑</div>
        <div onclick="removeit()" data-options="iconCls:'icon-remove'">删除</div>
        <div class="menu-sep"></div>
        <div onclick="expand()">展开</div>
        <div onclick="collapse()">收起</div>
    </div>
    <script type="text/javascript">
        function append(){
            var t = $('#tt');
            var node = t.tree('getSelected');
            t.tree('append', {
                parent: (node?node.target:null),
                data: [{
                    text: '未命名类别'
                }]
            });
        }
        function removeit(){
            var node = $('#tt').tree('getSelected');
            $('#tt').tree('remove', node.target);
        }
        function edit(){
            var node = $('#tt').tree('getSelected');
                $('#tt').tree('beginEdit',node.target);
            }
        function collapse(){
            var node = $('#tt').tree('getSelected');
            $('#tt').tree('collapse',node.target);
        }
        function expand(){
            var node = $('#tt').tree('getSelected');
            $('#tt').tree('expand',node.target);
        }
    </script><?php }} ?>